package top.ahzy.seobench.service;

import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Var;

public interface CommonApiService {

    @Get("https://www.fangpi.net/s/{musicName}")
    String searchMp3(@Var("musicName") String musicName);

    @Get("https://www.fangpi.net/music/{id}")
    String getMp3(@Var("id") String id);

    @Post(
            url = "https://www.fangpi.net/api/play-url",
            contentType = "application/x-www-form-urlencoded; charset=UTF-8"
    )
    String getMp3Url(@Body("id") String id);

}
